package com.ssyx.order.feign;

import com.ssyx.vo.user.LeaderAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName:UserFeignClient
 * Description:
 *
 * @Author kay
 * @Create 2024/5/22 9:24
 * @Version 1.0
 */
@FeignClient(value = "service-user")
public interface UserFeignClient {

    //提货点地址信息 LeaderAddressVo
    @GetMapping("/api/user/leader/inner/getUserAddressByUserId/{userId}")
    LeaderAddressVo getUserAddressByUserId(@PathVariable(value = "userId") Long userId);
}
